#include<stdio.h>
#include <string.h>


int main(int argc, char * argv[])
{

  char acSrc[100];
  char acDst[100];
  char acTst[10]; 
  int i=0;
  strcpy(acDst, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
  strcpy(acSrc, "yyyyyyyyyy"); 
   
  strncpy(acTst, acDst, 10); /*10 = sizeof(acTst) toest ne ostavqme mqsto za '\0'*/
  strncpy(acDst, acSrc, 20); 
     
  printf("\n[%s]\n", acDst);
  for(i=0;i<100;i++) printf("%2d: <%c>, (%d)\n", i, acDst[i], acDst[i]);
  printf("\n\n"); 
   
  printf("\n[%s]\n", acTst);
  for(i=0;i<10;i++) printf("%2d: <%c>, (%d)\n", i, acTst[i], acTst[i]);
  printf("\n\n");
  
  
  return 0;
  
}